package com.xuecheng.content.service.impl;

import com.xuecheng.content.dto.TeachplanDto;
import com.xuecheng.content.mapper.TeachplanMapper;
import com.xuecheng.content.service.TeachPlanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author FengHuan Wang
 * @Date 2025/3/30 11:28
 * @Version 1.0
 */
@Service
public class TeachPlanServiceImpl implements TeachPlanService {

    @Resource
    TeachplanMapper teachplanMapper;

    @Override
    public List<TeachplanDto> findTeachPlanTree(Long courseId) {
        return teachplanMapper.selectTreeNodes(courseId);
    }
}
